<div id="myCarousel" class="carousel slide">
    <!-- 轮播（Carousel）指标 -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
        <li data-target="#myCarousel" data-slide-to="3"></li>
        <li data-target="#myCarousel" data-slide-to="4"></li>
    </ol>
    <!-- 轮播（Carousel）项目 -->
    <div class="carousel-inner">
        {if condition="count($images)<4"}
            {for start="0" end="1"}
            <div class="item active">
                    <img id="lunbo1{$i}" class="lunbo_img" src="https://s1.ax1x.com/2020/05/07/YmgGPH.jpg" >
            </div>
            {/for}
            {for start="1" end="4"}
            <div class="item">
                    <img id="lunbo2{$i}" class="lunbo_img" src="https://s1.ax1x.com/2020/05/07/YmgGPH.jpg">
            </div>
            {/for}
        {else}
            {for start="0" end="1"}
            <div class="item active">
                <a href="/user/details/{$images[$i]['image_md5']}">
                    <img class="lunbo_img" src="{$images[0]['image_url']}" >
                </a>
            </div>
            {/for}
            {for start="1" end="4"}
            <div class="item">
                <a href="/user/details/{$images[$i]['image_md5']}">
                    <img class="lunbo_img" src="{$images[$i]['image_url']}">
                </a>
            </div>
            {/for}
        {/if}

    </div>
    <!-- 轮播（Carousel）导航 -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>